<?php

interface User{
    function getName();
    function setName();
}

interface Demo{
    function demo();
}
class Admin {
    public function pubNews(){
        echo '管理员发布新闻','<br/>';
    }
}

class Persion extends Admin implements User,Demo{
    private $name = 'noName';
    function getName(){
        echo 'My name is '.$this->name,'<br/>';
    }
    function setName($name=''){
        $this->name=$name;
    }
    function demo(){

    }
}

$lisi = new Persion();
$lisi->setName('lisi');
$lisi->getName();

$zhangsan = new Persion();
$zhangsan->setName('zhangsan');
$zhangsan->getName();
$zhangsan->demo();
$zhangsan->pubNews();